gdk: Remove overeager checks
authorBenjamin Otte <otte@redhat.com>
Sun, 5 Oct 2014 09:18:15 +0000 (11:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 5 Oct 2014 09:25:05 +0000 (11:25 +0200)
commit66be6a018c95e876b26b82e0648bb034c9307e79
tree079700a97054c14ecd5a7f2b461b3e578fe9672f
parent3526f2081bc9fb8b2ca9c693215a73a0afd2f717
gdk: Remove overeager checks

Parent is guaranteed to not be NULL. It can only ever be NULL for root
windows and root windows cannot be created with gdk_window_new() and
gdk_window_ensure_native() will exit early because they already are
native.

Also, both functions would crash a few lines below where parent gets
dereferenced.
gdk/gdkwindow.c